	<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>ca.html</title>
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
     <script type="text/javascript" src="jquery-3.1.0.js"></script>
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
	<script type="text/javascript">
		function count(){
			//checked 选择器选取所有选中的复选框或单选按钮
			alert($("input:checked").length)
		}
	
	</script>
  </head>
  
  <body>
   <input type="checkbox" >test1 <input type="checkbox" >test2 <input type="checkbox" >test3
   <input type="checkbox" >test4 <input type="button" onclick="count()" value="你选中的个数"/>
  </body>
</html>
